﻿#ifndef _RECORD_RW_FACTORY_H_
#define _RECORD_RW_FACTORY_H_

#include "rec_write.h"
#include "rec_write_asf.h"
#include "rec_write_avi.h"
#include "rec_read.h"
#include "rec_read_asf.h"
#include "rec_read_avi.h"


typedef enum _RECORD_FILE_TYPE
{
	RECORD_FILE_STFS = 0,	//默认生成线性录像文件
	RECORD_FILE_AVI = 1,    //微软AVI文件　同样是基本线性文件
	RECORD_FILE_MP4 = 2,    //微软ASF文件　同样是基本线性文件
	RECORD_FILE_ASF = 3,    //微软ASF文件　同样是基本线性文件

}RECORD_FILE_E;

class CRecWriteFactory
{
public:
	CRecWriteBase * GetRecorderInstance(int recordFileType,int channel);
	CRecReadBase * GetReaderInstance(int recordFileType,int channel,int clientID);
};

#endif //_RECORD_RW_FACTORY_H_
